
<body><h1 id="top">

	珠海菲雪洛琳服装有限公司 BackOffice</h1>
	
    <table id="maintable" border="1" width="100%" cellspacing="0" cellpadding="0">
  <tbody>
  	
  	<tr>
  			    	    <div class="headers" style="float:right; ">
  			    	    	<?php
  			    	    	date_default_timezone_set ('Asia/Shanghai');
  			    	    	echo $_SESSION['username']."_______";
  			    	    	
  			    	    	?>
  			    	      	<a id = "time" href=""></a>
                            _______
  			    	    	<a href="api/?action=logout">登出</a>
  			    	    	<a href="?page=current_user" ><img src="images/user/default_mini.png"/></a>
  			    	    	___

  			    	    	</div>

  		
  		</tr>
  		
<script>

myTimer();
var myVar=setInterval(function(){myTimer()},60000);
function myTimer()
{
	var d=new Date();
	jQuery("#time").text(d.toLocaleDateString()+" "+d.toLocaleTimeString());
}
function myStopFunction()
{
	clearInterval(myVar);
}

</script>
  	<tr>
    <td id="leftbar" valign="top">
    	
    	
    	

    	    <div id = 'ddblueblockmenu'>
    	    <div class="menutitle">当前帐户</div>
    	    <ul class="user">
    	    	<li id="logout"><a href="api/?action=logout">登出</a></li>
    	    	<li id="home"><a href="?page=home">首页</a></li>
    	    	<li id="current_user"><a href="?page=current_user">帐户详情</a></li>
    	    	<li id="contact_user"><a href="?page=contact_user">联络其他用户</a></li>

			</ul>
			<div class="menutitle">管理菲雪</div>

			<?php
			if($currentUser->authrized('management')){
				
	
			?>
			
			<ul class="management">
				<li id="manage_users"><a href="?page=manage_users">用户管理</a></li>
				<li id="manage_organizations"><a href="?page=manage_organizations">机构管理</a></li>
				<li id="manage_items"><a href="?page=manage_items">产品管理</a></li>
               	<li id="manage_transaction"><a href="?page=manage_transaction">撤销错误记录（慎用）</a></li>
			</ul>
			<?php
			}else{
			?>
			<ul class="management">
				<li id="manage_show"><a href="?page=manage_show">产品展示</a></li>
			</ul>
			<?php
			}
			?>
			<div class="menutitle">财务/会计</div>

					<?php
			if($currentUser->authrized('accounting')){
			?>
			
			<ul id="accounting">
				<li id="accounting_sell_record"><a href="?page=accounting_sell_record">销售统计</a></li>
				<li id="accounting_distributing"><a href="?page=accounting_distributing">未完成的物流统计</a></li>
				<li id="accounting_inventory"><a href="?page=accounting_inventory">库存统计</a></li>
				<li id="accounting_report"><a href="?page=accounting_report">财政报表下载</a></li>
			</ul>
			<?php
			}else{
			?>
			<ul id="accounting">
				<li id="accounting_inventory"><a href="?page=accounting_inventory">库存统计</a></li>
			</ul>
			<?php
			}
			?>
			<div class="menutitle">菲雪的运营</div>
			<?php
			foreach($allOrganizations as $organization){
				if($currentUser->authrized($organization->id)==1){
			
			?>
           <?php
				if($organization->type=='w'){
			
			?>
			<div class="menusubtitle">仓库： <?php echo $organization->name;?></div>

			<ul class="org<?php echo $organization->id;?>">

			<li id="<?php echo "organization_inventory"; ?>"><a href="?page=organization_inventory&id=<?php echo $organization->id; ?>">查看库存</a></li>
			<li id="<?php echo "organization_stack"; ?>"><a href="?page=organization_stack&id=<?php echo $organization->id; ?>">入库</a></li>
			<li id="<?php echo "organization_distribute"; ?>"><a href="?page=organization_distribute&id=<?php echo $organization->id; ?>">分配</a></li>
			<li id="<?php echo "organization_distribute_confirm"; ?>"><a href="?page=organization_distribute_confirm&id=<?php echo $organization->id; ?>">处理待定分配</a></li>
			<li id="<?php echo "organization_transaction"; ?>"><a href="?page=organization_transaction&id=<?php echo $organization->id; ?>">查看物流记录</a></li>
			
			</ul>

			<?php
			    }elseif($organization->type=='s'){
				?>
			<div class="menusubtitle">商铺： <?php echo $organization->name;?></div>

				<ul class="org<?php echo $organization->id;?>">
					
			<li id="<?php echo "organization_inventory"; ?>"><a href="?page=organization_inventory&id=<?php echo $organization->id; ?>">查看货存</a></li>
			<li id="<?php echo "organization_sell"; ?>"><a href="?page=organization_sell&id=<?php echo $organization->id; ?>">出售</a></li>
			<li id="<?php echo "organization_return"; ?>"><a href="?page=organization_return&id=<?php echo $organization->id; ?>">退款</a></li>
			<li id="<?php echo "organization_distribute"; ?>"><a href="?page=organization_distribute&id=<?php echo $organization->id; ?>">分配</a></li>
			<li id="<?php echo "organization_distribute_confirm"; ?>"><a href="?page=organization_distribute_confirm&id=<?php echo $organization->id; ?>">处理待定分配</a></li>
			<li id="<?php echo "organization_transaction"; ?>"><a href="?page=organization_transaction&id=<?php echo $organization->id; ?>">查看物流记录</a></li>
			<li id="<?php echo "organization_sell_record"; ?>"><a href="?page=organization_sell_record&id=<?php echo $organization->id; ?>">查看销售记录</a></li>

			</ul>
				
			<?php
			    }
			?>
			
			<?php
			    }elseif($currentUser->authrized($organization->id)==0){

				if($organization->type=='w'){
			
			?>
			<div class="menusubtitle">仓库： <?php echo $organization->name;?></div>

			<ul class="org<?php echo $organization->id;?>">

			<li id="<?php echo "organization_inventory"; ?>"><a href="?page=organization_inventory&id=<?php echo $organization->id; ?>">查看库存</a></li>
			</ul>

			<?php
			    }elseif($organization->type=='s'){
				?>
			<div class="menusubtitle">商铺： <?php echo $organization->name;?></div>

				<ul class="org<?php echo $organization->id;?>">
					
			<li id="<?php echo "organization_inventory"; ?>"><a href="?page=organization_inventory&id=<?php echo $organization->id; ?>">查看货存</a></li>
			</ul>
				
			<?php
			    }
				}
			?>




<?php
			}
			?>

			<div class="menutitle">文档</div>
			
			<ul id="doc">
				<li id="intro"><a href="?page=intro">backoffice使用手册</a></li>
				<li id="intro_scan_code"><a href="?page=intro_scan_code">编码系统详解</a></li>
				<li id="notice"><a href="?page=notice">关于打印吊牌贴纸和洗水唛的要求及注意事项</a></li>
				<li id="pcode"><a href="?page=pcode">厂商识别代码编写规则</a></li>

				<li id="aut"><a href="?page=aut">版权</a></li>
				<li id="website"><a href="?page=website">菲雪洛琳网页</a></li>
				
			</ul>
<br>
<dl >
					<dt style="padding-left: 5px;">版本 1.0 Beta</dt>

				<dt style="padding-left: 5px;">更改日期:2012-12-04</dt>
				
			</dl>



<div style="text-align:center">

<script type="text/javascript">

</script>
</div>
		






</div>


</td>

    <td valign="top" id="contentarea">
    

